<?php
namespace App\Services\Main;

use App\Repositories\Main\AdRepository;

class AdService
{
    private $service;

    public function __construct()
    {
        $this->service = new AdRepository();
    }

    public function getAdminIndex()
    {
        return $this->service->getAdminIndex();
    }

    public function getAppIndex($genre)
    {
        return $this->service->getAppIndex($genre);
    }

    public function add($data)
    {
        return $this->service->setAdd($data);
    }

    public function modify($data,$id)
    {
        return $this->service->setModify($data,$id);
    }

    public function getOne($id)
    {
        return $this->service->getShowOne($id);
    }

    public function getGenres()
    {
        return $this->service->getGenres();
    }
}